package java56_4;

import java.util.Scanner;

public class CalcAvg {

	public static void main(String[] args) {
		double total = 0, avg = 0, s;
		Scanner input = new Scanner(System.in);
		for (int i = 1; i <= 5; i++) {
			System.out.println("请输入第" + i + "门课成绩：");
			// s = input.nextDouble();
			total += input.nextDouble();
		}
		avg = total / 5;
		System.out.printf("平均分是%7.2f", avg);
	}
}
